# 读取season id和title用于翻译
def read_season(template_file):
    f1 = open(template_file, 'r+', encoding='UTF-8', errors='ignore')
    text = f1.read().replace(' ', '')
    splittedText = text.split('\n')
    seasonDict = {}
    for line in splittedText:
        splittedLine = line.split('|')
        print(splittedLine)
        seasonDict[splittedLine[1]] = splittedLine[2]

    return seasonDict
